/**
 * 主进程与渲染进程通信频道定义
 * Definition of communication channels between main process and rendering process
 */
const ipcApiRoute = {

    //窗口控制
    'window.close': 'controller/window/close',
    'window.restore': 'controller/window/restore',
    'window.minimum': 'controller/window/minimum',
    'window.pin': 'controller/window/pin',
    'window.setZoomFactor': 'controller/window/setZoomFactor',
    'window.focusMainWindow': 'controller/window/focusMainWindow',
    'window.setAllBackgroundColor': 'controller/window/setAllBackgroundColor',

    //子窗口控制
    'childWindow.create': 'controller/childWindow/create',

    //原生消息弹窗
    'nativeBox.showBox': 'controller/nativeBox/showBox',
    'nativeBox.selectDir': 'controller/nativeBox/selectDir',

    //应用主页
    'home.saveAndSync': 'controller/home/saveAndSync',
    'home.onlySave': 'controller/home/onlySave',
    'home.getAppConfig': 'controller/home/getAppConfig',
    'home.checkForUpdate': 'controller/home/checkForUpdate',
    'home.downloadLatestVersion': 'controller/home/downloadLatestVersion',
    'home.appChangeLog': 'controller/home/appChangeLog',

    //文件系统
    'fs.checkIsDir': 'controller/fs/checkIsDir'

}

export {
    ipcApiRoute
}

